From 6803b153a8fc27bcabaf30600220296ce595e53a Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Fri, 23 Feb 2024 10:31:56 -0600 Subject: [PATCH] Upgrade from psycopg2 to psycopg3; drop python <= v3.5, add v3.8-v3.11 --- setup.py | 6 ++++-- src/pgwui_copy/exceptions.py | 9 +++++---- tox.ini | 8 +++++--- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 30cd98f..4461e12 100644 --- a/setup.py +++ b/setup.py @@ -115,10 +115,12 @@ setup( # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', ], # What does your project relate to? diff --git a/src/pgwui_copy/exceptions.py b/src/pgwui_copy/exceptions.py index fcd0fd1..247b4cf 100644 --- a/src/pgwui_copy/exceptions.py +++ b/src/pgwui_copy/exceptions.py @@ -1,4 +1,5 @@ -# Copyright (C) 2020, 2021 The Meme Factory, Inc. http://www.karlpinc.com/ +# Copyright (C) 2020, 2021, 2024 The Meme Factory, Inc. +# http://www.karlpinc.com/ # This file is part of PGWUI_Copy. # @@ -138,7 +139,7 @@ class PGRestoreError(CopyProcessError): class DropSchemaError(core_ex.DBError): def __init__(self, pgexc, schema, db): ''' - pgexc The psycopg2 exception object + pgexc The psycopg3 exception object ''' super().__init__( pgexc, 'drop the ({0}) schema in the ({1}) db'.format(schema, db)) @@ -147,7 +148,7 @@ class DropSchemaError(core_ex.DBError): class VacuumFullError(core_ex.DBError): def __init__(self, pgexc, db): ''' - pgexc The psycopg2 exception object + pgexc The psycopg3 exception object ''' super().__init__( pgexc, 'VACUUM FULL the ({0}) db'.format(db)) @@ -156,7 +157,7 @@ class VacuumFullError(core_ex.DBError): class VacuumAnalyzeError(core_ex.DBError): def __init__(self, pgexc, db): ''' - pgexc The psycopg2 exception object + pgexc The psycopg3 exception object ''' super().__init__( pgexc, 'VACUUM ANALYZE the ({0}) db'.format(db)) diff --git a/tox.ini b/tox.ini index 2a076ea..52809cf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,14 @@ [tox] -envlist = py{34,35,36,37} +envlist = py{36,37,38,39,310,311} [testenv] basepython = - py34: python3.4 - py35: python3.5 py36: python3.6 py37: python3.7 + py38: python3.8 + py39: python3.9 + py310: python3.10 + py311: python3.11 deps = check-manifest cmarkgfm -- 2.34.1